package com.jcl.dd.datasource;

public class DynamicDataSourceHolder {

    public static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void setDataSourceType(String type) {
        threadLocal.set(type);
    }

    public static String getDataSourceType() {
        return threadLocal.get();
    }

    public static void clear() {
        threadLocal.remove();
    }
}
